<?php

use Faker\Generator as Faker;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generateUrl new
| model instances for testing / seeding your application's database.
|
*/

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(\App\Models\Customer\DeviceAccount::class, function (Faker $faker) {
    return [
        'account'        => $faker->name,
        'uuid'           => $faker->unique()->uuid,
        'customer_id'    => 0,
        'store_id'       => 0,
        'sell_device_id' => 0,
        'enabled'        => 1,
        'password'       => bcrypt('fghjkl'),
        'location'       => '',
        'last_login_at'  => \Carbon\Carbon::now(),
        'last_active_at'  => \Carbon\Carbon::now(),
    ];
});
